package com.yidi.quartz.domain;

import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import com.yidi.common.annotation.Excel;
import com.yidi.common.core.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author ：Xn
 * @ClassName: SysJobLog
 * @date ：2021-10-19 9:13
 * @describe ：定时任务调度日志表
 */
@Getter
@Setter
@Entity
@Table(name = "sys_job_log")
@ToString(callSuper=true)
public class SysJobLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务名称 */
    @Excel(name = "任务名称")
    @Column(name = "job_name")
    private String jobName;

    /** 任务组名 */
    @Excel(name = "任务组名")
    @Column(name = "job_group")
    private String jobGroup;

    /** 调用目标字符串 */
    @Excel(name = "调用目标字符串")
    @Column(name = "invoke_target")
    private String invokeTarget;

    /** 日志信息 */
    @Excel(name = "日志信息")
    @Column(name = "job_message")
    private String jobMessage;

    /** 执行状态（0正常 1失败） */
    @Excel(name = "执行状态", readConverterExp = "0=正常,1=失败")
    private String status;

    /** 异常信息 */
    @Excel(name = "异常信息")
    @Column(name = "exception_info")
    private String exceptionInfo;

    /** 开始时间 */
    private Date startTime;

    /** 停止时间 */
    private Date stopTime;

}
